// 把common.less引入到当前页面
@import 'common.less';
// 设置pc端里html的字体大小是50  750屏幕/把屏幕分15等份 = 50(字体大小)
@basefont:50;
body{
    min-width: 320px;
    max-width: 15rem;
    margin: 0 auto;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}
a{
    text-decoration: none;
}
// 搜索模块
.seacher_content{
    background: #F2F2F2;
    height: (80rem / @basefont);
    position: relative;
    .seacher_logo{
        width: (100rem / @basefont);
        height: (80rem / @basefont);
        position: absolute;
        left: 0;
        img{
            width: (51rem / @basefont);
            height: (51rem / @basefont);
            padding-top: (15rem / @basefont);
            padding-left: (25rem / @basefont);
        }
    }
    .seacher_in{
        position: absolute;
        width: (90rem / @basefont);
        height: (80rem / @basefont);
        right: 0;
        top: 0;
        img{
            width: (40rem / @basefont);
            height: (40rem / @basefont);
            padding-left: (25rem / @basefont);
            padding-top: (20rem / @basefont);
        }
    }
    .seacher{
        height: (80rem / @basefont);
        margin:0 (90rem / @basefont) 0 (100rem / @basefont);
        position: relative;
        input{
            position: absolute;
            top: (9rem / @basefont);
            width: 100%;
            height: (62rem / @basefont);
            border:(1rem / @basefont) solid #ccc;
            outline: none;
            padding: 0 0 0 (47rem / @basefont);
            box-sizing: border-box;
            margin: 0;
            font-size: (28rem / @basefont);
            border-radius: (5rem / @basefont);
            background: #fff;
            letter-spacing: (1rem / @basefont);
        }
        &::before{
            content: "";
            display: block;
            width: (40rem / @basefont);
            height: (40rem / @basefont);
            background: url(../icons/search.png) no-repeat;
            background-size: (40rem / @basefont) (40rem / @basefont);
            z-index: 99;
            top: (20rem / @basefont);
            left: (8rem / @basefont);
            position: absolute;
        }
    }
}
// 推荐导航模块
.recommend{
    height:(57rem / @basefont);
    background:#F2F2F2;
    padding: 0 (100rem / @basefont);
    display: flex;
    justify-content: space-between;
    align-items: center;
    a{
        font-size: (25rem / @basefont);
        line-height: (53rem / @basefont);
        color: #747474;
        white-space: nowrap;
        &:nth-child(1){
            border-bottom: (3rem / @basefont) solid orange ;
            color: #ed5b00;
        }
    }
}
// banner轮播图
.banner_content{
    overflow: hidden;
    position: relative;
    background: #ccc;
}
  .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .swiper-pagination{
    position: absolute;       
}
// 十个导航模块
.nav_content{
    display: flex;
    flex-wrap: wrap;
    a{
        flex: 20%;
        img{
            width: 100%;
        }
    }
}
// 商品模块_1
.commodity_content_one{
    height: (508rem / @basefont);
    padding: (16rem / @basefont) 0 ;
    background: #F5F5F5;
    display: flex;
    .commodity_one_item{
        flex: 1;
        img{
            width: 100%;
            height: 100%;
        }
    }
}
// 热销爆款模块
.commodity_one_item2{
    display: flex;
    flex-direction: column;
    a{
        flex: 1;
        padding-left: (4rem / @basefont);
        &:nth-child(1){
            img{
                width: (375rem / @basefont);
                height: (254rem / @basefont);
                display: block;
                padding-bottom: (2rem / @basefont);
            }
        }
        &:nth-child(2){
            img{
                display: block;
                width: (375rem / @basefont);
                height: (254rem / @basefont);
                padding-top: (2rem / @basefont);
                box-sizing: border-box;
            }
        }
    }
}
.expenditures{
    .expenditures_banner{
        display: block;
        height: (430rem / @basefont);
        img{
            width: 100%;
            height: 100%;
        }
    }
    .phonemodel{
        padding: (6rem / @basefont)  (12rem / @basefont);
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        .phone_model{
            width: 49%;
            img{
                width: 100%;
            }
            .phone_introduction{
                padding:0 (18rem / @basefont) (25rem / @basefont) (18rem / @basefont);
                background: #fff;
                cursor: default;
                span{
                    display: block;
                    text-align: center;
                    font-size: (20rem / @basefont);
                }
                .phone_name{
                    color: #000000de;
                    font-size: (28rem / @basefont);
                }
                .phone_size{
                    color: #0000008a;
                    padding: (3rem / @basefont ) 0;
                }
                .phone_price{
                    color:#ea625b ;
                    font-size: (27rem / @basefont);
                }
                .phone_purchase{
                    width: (220rem / @basefont);
                    height: (60rem / @basefont);
                    margin: (3rem / @basefont) auto;
                    background: #ea625b;
                    color: #fff;
                    font-weight: bold;
                    line-height: (60rem / @basefont);
                    border-radius: (6rem / @basefont);
                    font-size: (27rem / @basefont);
                }
            }
        }
    }
}
.more_products{
    height: (80rem / @basefont);
    text-align: center;
    color: #00000099;
    line-height: (80rem / @basefont);
    font-size: (28rem / @basefont);
    background: #fff;
}
// 米家智能模块
.printer{
    background-color: #F5f5f5;
    padding: (16rem / @basefont) 0;
    a{
        height: (440rem / @basefont);
        background: red;
        display: block;
        img{
            width: 100%;
            height: 100%;
        }
    }
}
// 更多米家智能产品模块
.more_intelligent_products{
    .more_seven{
        padding: (12rem / @basefont ) 0 0 0;
        background-color: #F5f5f5;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        a{
            width: (373rem / @basefont);
            img{
                display: block;
                width: 100%;
                height: 100%;
                padding-top: (4rem / @basefont);
                box-sizing: border-box;
            }
        }
    }
}
// 高价回收模块
.recovery{
    height: (285rem / @basefont);
    padding:(16rem / @basefont) 0 0 0;
    background: #F5f5f5;
        img{
            width: 100%;
            height: 100%;
        }
    .understand{
        display: block;
        height: (106rem / @basefont);
        position: relative;
        top:(-16rem / @basefont);
            img{
                width: 100%;
                height: 100%;
                display: block;
            }
    }
}
// 底部导航
.footer{
    width: (750rem / @basefont);
    height: (90rem / @basefont);
    background: #FFFFFF;
    box-shadow: 0 3px 14px 2px rgb(0 0 0 / 12%);
    position: fixed;
    bottom: 0;
    z-index: 9999;
    display: flex;
    a{
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        img{
            width: (30rem / @basefont);
            height: (30rem / @basefont);
        }
        span{
           font-size: (22rem / @basefont);
           padding-top: (5rem / @basefont);
           color: #999;
        }
    }
    .home{
        span{
            color: #ff6700;
        }
    }
}